import request from '@/utils/request'

// 获取评论列表
export function getList(params) {
  return request({
    url: '/opusComment/page',
    method: 'get',
    params
  })
}

// 删除评论
export function deleteComment(data) {
  return request({
    url: '/opusComment/' + data.commentId,
    method: 'delete'
  })
}

// 更新评论
export function updateComment(data) {
  return request({
    url: '/opusComment',
    method: 'post',
    data
  })
}
